package org.jeecg.modules.supplier.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("proc_qualification")
@ApiModel(value = "qualification对象", description = "资质信息")
@Table(name = "proc_qualification")
public class qualification implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 供应商id
     */
    @ApiModelProperty(value = "供应商id")
    @Column(name = "supplier_id")
//    @Excel(name = "供应商id")
    private String supplierId;

    @ApiModelProperty(value = "统一社会信用代码")
    @NotBlank(message = "统一社会信用代码不能为空")
    @Column(name = "credit_code")
    @Excel(name = "统一社会信用代码")
    private String creditCode;

    /**
     * 资质名称
     */
    @ApiModelProperty(value = "资质名称")
    @Column(name = "qualification_name")
    @Excel(name = "资质名称")
    private String qualificationName;

    /**
     * 资质等级
     */
    @ApiModelProperty(value = "资质等级")
    @Column(name = "qualification_level")
    @Excel(name = "资质等级")
    private String qualificationLevel;

    /**
     * 证书编号
     */
    @ApiModelProperty(value = "证书编号")
    @Column(name = "certificate_number")
    @Excel(name = "证书编号")
    private String certificateNumber;

    /**
     * 发证机关
     */
    @ApiModelProperty(value = "发证机关")
    @Column(name = "issuing_authority")
    @Excel(name = "发证机关")
    private String issuingAuthority;

    /**
     * 有效期
     */
    @ApiModelProperty(value = "有效期")
    @Column(name = "validity_period")
    @Excel(name = "有效期", width = 20)
    private Date validityPeriod;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

}
